package team.cdlzz.dao;

import org.apache.ibatis.annotations.Mapper;
import team.cdlzz.model.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    List<User> selectAll();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(String email);

    User getTeacherInfo(Integer uid);

    User UserEmailExist(String email);

//    User selectByMail(String name);
}